import request from '@/utils/request'
import type { ResApi,LoginRes,LoginType } from '@/types/user'

// 封装登录接口

// 返回值类型ResAPi

export const loginApi = (data: LoginType) => {
  return request<ResApi<LoginRes>>({
    method: 'post',
    url: '/user/login',
    data,
  })
}

